package cn.mymall.entity.mall;

import cn.mymall.util.DateUtil;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.sql.Timestamp;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName("mall_vendor")
public class Vendor extends Model {
	private static final long serialVersionUID = 5341249109263314186L;
	/**
	 * 供应商
	 */
	@TableId(value = "id",type = IdType.AUTO)
	private Integer id;
	private String vendorCode;
	private String vendorName;
	private String contactPerson;
	private String mobile;
	private String telephone;
	private String address;
	private String zip;
	private Timestamp addTime;        			//创建时间
	private Timestamp updateTime;

	public Vendor(){
		this.addTime = DateUtil.getCurFullTimestamp();
		this.updateTime=this.addTime;
	}

}

